﻿using System.Windows.Forms;

namespace SSAT.Utils.Freezer
{
    internal sealed class FreezedToolStripItem : FreezedItem
    {
        private readonly ToolStripItem _item;

        public FreezedToolStripItem(ToolStripItem item)
        {
            Verification.CheckArgumentForNull(item, "item");
            _item = item;
        }

        public override void Enable()
        {
            _item.Enabled = true;
        }

        public override void Disable()
        {
            _item.Enabled = false;
        }
    }
}
